package ycj.learn.spring.aop;

import ycj.learn.spring.common.HelloController;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class MyTest {

    @Test
    public void testAop() {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Config.class);

        HelloController helloController = context.getBean(HelloController.class);
        helloController.sayHello();
    }
}
